<!DOCTYPE html>
<html
  lang="zh"
  xmlns:th="http://www.thymeleaf.org"
  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
>
  <head>
    <th:block th:include="include :: header('查看PK对战')" />
  </head>
  <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
        <div class="col-sm-12">
          <div class="ibox float-e-margins">
            <div class="ibox-title">
              <h5>查看PK对战</h5>
            </div>
            <div class="ibox-content">
              <form
                class="form-horizontal m"
                id="form-pk-view"
                th:object="${pkBattle}"
              >
                <input name="id" th:field="*{id}" type="hidden" />
                <div class="form-group">
                  <label class="col-sm-3 control-label">对战编号：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{battleNo}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">发起者ID：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{initiatorId}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">应战者ID：</label>
                  <div class="col-sm-8">
                    <p
                      class="form-control-static"
                      th:text="*{challengerId}"
                    ></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">配置ID：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{configId}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">对战状态：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:if="*{battleStatus} == 1">
                      等待应战
                    </p>
                    <p class="form-control-static" th:if="*{battleStatus} == 2">
                      对战中
                    </p>
                    <p class="form-control-static" th:if="*{battleStatus} == 3">
                      已结束
                    </p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">获胜者ID：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{winnerId}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">开始时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{startTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">结束时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{endTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">创建者：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{createBy}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">创建时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{createTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">更新者：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{updateBy}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">更新时间：</label>
                  <div class="col-sm-8">
                    <p class="form-control-static" th:text="*{updateTime}"></p>
                  </div>
                </div>
                <div class="form-group">
                  <div class="form-control-static col-sm-offset-9">
                    <button
                      type="button"
                      class="btn btn-danger"
                      onclick="closeItem()"
                    >
                      关闭
                    </button>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

    <th:block th:include="include :: footer" />
  </body>
</html>
